package com.morningstar.qs.basic.db.bean;


import org.apache.commons.beanutils.BeanUtils;

import com.morningstar.qs.basic.db.util.BeanBase;

public class UserMessageCount extends BeanBase implements  java.io.Serializable{

	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1473659466907736691L;
	private int memberUserId;
	private int messageCount;
	
	public UserMessageCount(int memberUserId, int messageCount) {
		super();
		this.memberUserId = memberUserId;
		this.messageCount = messageCount;
	}

	public int getMemberUserId() {
		return memberUserId;
	}


	public void setMemberUserId(int memberUserId) {
		this.memberUserId = memberUserId;
	}

	public int getMessageCount() {
		return messageCount;
	}

	public void setMessageCount(int messageCount) {
		this.messageCount = messageCount;
	}

	public UserMessageCount() {
	}

	
	public UserMessageCount toDto() {
		UserMessageCount dto=null;
		
		try {
			dto=new UserMessageCount();
			BeanUtils.copyProperties(dto, this);
		} catch (Exception e) {
			e.printStackTrace();
		} 
		return dto;
	}
	
}
